\hypertarget{service__logger_8hpp}{}\doxysection{log/service\+\_\+logger.hpp File Reference}
\label{service__logger_8hpp}\index{log/service\_logger.hpp@{log/service\_logger.hpp}}


服务日志  


{\ttfamily \#include $<$cstdarg$>$}\newline
{\ttfamily \#include $<$cstdio$>$}\newline
{\ttfamily \#include \char`\"{}box/service\+\_\+context.\+hh\char`\"{}}\newline
{\ttfamily \#include \char`\"{}box/service\+\_\+logger.\+hh\char`\"{}}\newline
{\ttfamily \#include \char`\"{}klogger/klogger/interface/logger.\+h\char`\"{}}\newline
{\ttfamily \#include \char`\"{}service\+\_\+tool.\+hpp\char`\"{}}\newline
{\ttfamily \#include \char`\"{}singleton.\+hpp\char`\"{}}\newline
{\ttfamily \#include $<$string$>$}\newline
\doxysubsection*{Classes}
\begin{DoxyCompactItemize}
\item 
class \mbox{\hyperlink{classguild__service_1_1common_1_1service__logger}{guild\+\_\+service\+::common\+::service\+\_\+logger}}
\end{DoxyCompactItemize}
\doxysubsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{service__logger_8hpp_ab9ded45a3553d6bf0bab80424c0dfbaf}\label{service__logger_8hpp_ab9ded45a3553d6bf0bab80424c0dfbaf}} 
\#define {\bfseries Service\+Logger\+Singleton}(...)~  ($\ast$common\+::singleton$<$common\+::service\+\_\+logger$>$\+::instance(\+\_\+\+\_\+\+V\+A\+\_\+\+A\+R\+G\+S\+\_\+\+\_\+))
\item 
\mbox{\Hypertarget{service__logger_8hpp_a5fccb4fc71e44089a1b1a77fc76c0b68}\label{service__logger_8hpp_a5fccb4fc71e44089a1b1a77fc76c0b68}} 
\#define {\bfseries \+\_\+\+\_\+\+F\+I\+L\+E\+N\+A\+M\+E\+\_\+\+\_\+}~(strrchr(\char`\"{}/\char`\"{} \+\_\+\+\_\+\+F\+I\+L\+E\+\_\+\+\_\+, \textquotesingle{}/\textquotesingle{}) + 1)
\item 
\#define {\bfseries L\+O\+G\+\_\+\+D\+E\+B\+UG}(format, ...)
\item 
\#define {\bfseries L\+O\+G\+\_\+\+I\+N\+FO}(format, ...)
\item 
\#define {\bfseries L\+O\+G\+\_\+\+W\+A\+RN}(format, ...)
\item 
\#define {\bfseries L\+O\+G\+\_\+\+E\+X\+C\+E\+PT}(format, ...)
\item 
\#define {\bfseries L\+O\+G\+\_\+\+F\+A\+IL}(format, ...)
\item 
\mbox{\Hypertarget{service__logger_8hpp_a259d62ffbd4525521220c45b05c1ec26}\label{service__logger_8hpp_a259d62ffbd4525521220c45b05c1ec26}} 
\#define {\bfseries L\+O\+G\+\_\+\+B\+E\+G\+I\+N\+\_\+S}~  \char`\"{} -\/ \char`\"{} $<$$<$ \+\_\+\+\_\+func\+\_\+\+\_\+ $<$$<$ \char`\"{} \char`\"{} $<$$<$ \+\_\+\+\_\+\+F\+I\+L\+E\+N\+A\+M\+E\+\_\+\+\_\+ $<$$<$ \char`\"{}\+:\char`\"{} $<$$<$ \+\_\+\+\_\+\+L\+I\+N\+E\+\_\+\+\_\+ $<$$<$ \char`\"{} \char`\"{}
\item 
\mbox{\Hypertarget{service__logger_8hpp_a1b58a6e7c97c1f4ca2fddf21b5e47251}\label{service__logger_8hpp_a1b58a6e7c97c1f4ca2fddf21b5e47251}} 
\#define {\bfseries L\+O\+G\+\_\+\+D\+E\+B\+U\+G\+\_\+S}~guild\+\_\+service\+::log\+\_\+debug() $<$$<$ L\+O\+G\+\_\+\+B\+E\+G\+I\+N\+\_\+S
\item 
\mbox{\Hypertarget{service__logger_8hpp_a28d4d51a64e29b87c59c10f86615f4bf}\label{service__logger_8hpp_a28d4d51a64e29b87c59c10f86615f4bf}} 
\#define {\bfseries L\+O\+G\+\_\+\+I\+N\+F\+O\+\_\+S}~guild\+\_\+service\+::log\+\_\+info() $<$$<$ L\+O\+G\+\_\+\+B\+E\+G\+I\+N\+\_\+S
\item 
\mbox{\Hypertarget{service__logger_8hpp_ad9b694972a4957493602ba1e7d3c5925}\label{service__logger_8hpp_ad9b694972a4957493602ba1e7d3c5925}} 
\#define {\bfseries L\+O\+G\+\_\+\+W\+A\+R\+N\+\_\+S}~guild\+\_\+service\+::log\+\_\+warn() $<$$<$ L\+O\+G\+\_\+\+B\+E\+G\+I\+N\+\_\+S
\item 
\mbox{\Hypertarget{service__logger_8hpp_a84b8458da6b5afc625fe1affc3aebf59}\label{service__logger_8hpp_a84b8458da6b5afc625fe1affc3aebf59}} 
\#define {\bfseries L\+O\+G\+\_\+\+E\+X\+C\+E\+P\+T\+\_\+S}~guild\+\_\+service\+::log\+\_\+except() $<$$<$ L\+O\+G\+\_\+\+B\+E\+G\+I\+N\+\_\+S
\item 
\mbox{\Hypertarget{service__logger_8hpp_af01efb441cce315628265a4fe8d7365b}\label{service__logger_8hpp_af01efb441cce315628265a4fe8d7365b}} 
\#define {\bfseries L\+O\+G\+\_\+\+F\+A\+I\+L\+\_\+S}~guild\+\_\+service\+::log\+\_\+fail() $<$$<$ L\+O\+G\+\_\+\+B\+E\+G\+I\+N\+\_\+S
\item 
\mbox{\Hypertarget{service__logger_8hpp_a11b0acfdc46e755da2e8e7d406d60144}\label{service__logger_8hpp_a11b0acfdc46e755da2e8e7d406d60144}} 
\#define {\bfseries L\+O\+G\+\_\+\+E\+N\+D\+\_\+S}~kratos\+::service\+::\+End\+Log()
\end{DoxyCompactItemize}
\doxysubsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{service__logger_8hpp_acbfd667ce6cf8f0af436296a7740169b}\label{service__logger_8hpp_acbfd667ce6cf8f0af436296a7740169b}} 
using \mbox{\hyperlink{service__logger_8hpp_acbfd667ce6cf8f0af436296a7740169b}{guild\+\_\+service\+::logger\+\_\+level\+\_\+type}} = guild\+\_\+service\+::common\+::service\+\_\+logger\+::logger\+\_\+level\+\_\+type
\begin{DoxyCompactList}\small\item\em 日志等级类型 \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
服务日志 

\begin{DoxyDate}{Date}
2021/04/15 20\+:16
\end{DoxyDate}
\begin{DoxyAuthor}{Author}
harrybao (\href{mailto:harrybao@123u.com}{\texttt{ harrybao@123u.\+com}})
\end{DoxyAuthor}
\begin{DoxyVersion}{Version}
v1.\+0.\+0
\end{DoxyVersion}
\begin{DoxyCopyright}{Copyright}
Copyright © 2021 All Rights Reserved 上海欢乐互娱网络科技有限公司
\end{DoxyCopyright}
\begin{DoxyParagraph}{history\+:}
\tabulinesep=1mm
\begin{longtabu}spread 0pt [c]{*{4}{|X[-1]}|}
\hline
\cellcolor{\tableheadbgcolor}\textbf{ Date }&\cellcolor{\tableheadbgcolor}\textbf{ Version }&\cellcolor{\tableheadbgcolor}\textbf{ Author }&\cellcolor{\tableheadbgcolor}\textbf{ Description }\\\cline{1-4}
\endfirsthead
\hline
\endfoot
\hline
\cellcolor{\tableheadbgcolor}\textbf{ Date }&\cellcolor{\tableheadbgcolor}\textbf{ Version }&\cellcolor{\tableheadbgcolor}\textbf{ Author }&\cellcolor{\tableheadbgcolor}\textbf{ Description }\\\cline{1-4}
\endhead
2021/04/15 20\+:16 &1.\+0.\+0 &harrybao &创建初始版本 \\\cline{1-4}
\end{longtabu}

\end{DoxyParagraph}


\doxysubsection{Macro Definition Documentation}
\mbox{\Hypertarget{service__logger_8hpp_abd0b0523397fb05f0ed46fc217fb630f}\label{service__logger_8hpp_abd0b0523397fb05f0ed46fc217fb630f}} 
\index{service\_logger.hpp@{service\_logger.hpp}!LOG\_DEBUG@{LOG\_DEBUG}}
\index{LOG\_DEBUG@{LOG\_DEBUG}!service\_logger.hpp@{service\_logger.hpp}}
\doxysubsubsection{\texorpdfstring{LOG\_DEBUG}{LOG\_DEBUG}}
{\footnotesize\ttfamily \#define L\+O\+G\+\_\+\+D\+E\+B\+UG(\begin{DoxyParamCaption}\item[{}]{format,  }\item[{}]{... }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{  guild\_service::log\_it(guild\_service::logger\_level\_type::DIAGNOSE, \(\backslash\)}
\DoxyCodeLine{                        \textcolor{stringliteral}{"{} "{}} format \textcolor{stringliteral}{"{} -\/ \%s(\%s:\%d) "{}}, \#\#\_\_VA\_ARGS\_\_,  \(\backslash\)}
\DoxyCodeLine{                        \_\_FUNCTION\_\_, \_\_FILENAME\_\_, \_\_LINE\_\_)}

\end{DoxyCode}
\mbox{\Hypertarget{service__logger_8hpp_ab384d85dbc51b9d698d67202dbd4b9b3}\label{service__logger_8hpp_ab384d85dbc51b9d698d67202dbd4b9b3}} 
\index{service\_logger.hpp@{service\_logger.hpp}!LOG\_EXCEPT@{LOG\_EXCEPT}}
\index{LOG\_EXCEPT@{LOG\_EXCEPT}!service\_logger.hpp@{service\_logger.hpp}}
\doxysubsubsection{\texorpdfstring{LOG\_EXCEPT}{LOG\_EXCEPT}}
{\footnotesize\ttfamily \#define L\+O\+G\+\_\+\+E\+X\+C\+E\+PT(\begin{DoxyParamCaption}\item[{}]{format,  }\item[{}]{... }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{  guild\_service::log\_it(guild\_service::logger\_level\_type::EXCEPTION, \(\backslash\)}
\DoxyCodeLine{                        \textcolor{stringliteral}{"{} "{}} format \textcolor{stringliteral}{"{} -\/ \%s(\%s:\%d) "{}}, \#\#\_\_VA\_ARGS\_\_,   \(\backslash\)}
\DoxyCodeLine{                        \_\_FUNCTION\_\_, \_\_FILENAME\_\_, \_\_LINE\_\_)}

\end{DoxyCode}
\mbox{\Hypertarget{service__logger_8hpp_a2aadc4c095b85afd246542d29967ffc6}\label{service__logger_8hpp_a2aadc4c095b85afd246542d29967ffc6}} 
\index{service\_logger.hpp@{service\_logger.hpp}!LOG\_FAIL@{LOG\_FAIL}}
\index{LOG\_FAIL@{LOG\_FAIL}!service\_logger.hpp@{service\_logger.hpp}}
\doxysubsubsection{\texorpdfstring{LOG\_FAIL}{LOG\_FAIL}}
{\footnotesize\ttfamily \#define L\+O\+G\+\_\+\+F\+A\+IL(\begin{DoxyParamCaption}\item[{}]{format,  }\item[{}]{... }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{  guild\_service::log\_it(guild\_service::logger\_level\_type::FAILURE, \(\backslash\)}
\DoxyCodeLine{                        \textcolor{stringliteral}{"{} "{}} format \textcolor{stringliteral}{"{} -\/ \%s(\%s:\%d) "{}}, \#\#\_\_VA\_ARGS\_\_, \(\backslash\)}
\DoxyCodeLine{                        \_\_FUNCTION\_\_, \_\_FILENAME\_\_, \_\_LINE\_\_)}

\end{DoxyCode}
\mbox{\Hypertarget{service__logger_8hpp_a89681da4efde0b54dc7f2839665082c8}\label{service__logger_8hpp_a89681da4efde0b54dc7f2839665082c8}} 
\index{service\_logger.hpp@{service\_logger.hpp}!LOG\_INFO@{LOG\_INFO}}
\index{LOG\_INFO@{LOG\_INFO}!service\_logger.hpp@{service\_logger.hpp}}
\doxysubsubsection{\texorpdfstring{LOG\_INFO}{LOG\_INFO}}
{\footnotesize\ttfamily \#define L\+O\+G\+\_\+\+I\+N\+FO(\begin{DoxyParamCaption}\item[{}]{format,  }\item[{}]{... }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{  guild\_service::log\_it(guild\_service::logger\_level\_type::INFORMATION, \(\backslash\)}
\DoxyCodeLine{                        \textcolor{stringliteral}{"{} "{}} format \textcolor{stringliteral}{"{} -\/ \%s(\%s:\%d) "{}}, \#\#\_\_VA\_ARGS\_\_,     \(\backslash\)}
\DoxyCodeLine{                        \_\_FUNCTION\_\_, \_\_FILENAME\_\_, \_\_LINE\_\_)}

\end{DoxyCode}
\mbox{\Hypertarget{service__logger_8hpp_a31e7ff3be0d7ddbd843b3335b534bd03}\label{service__logger_8hpp_a31e7ff3be0d7ddbd843b3335b534bd03}} 
\index{service\_logger.hpp@{service\_logger.hpp}!LOG\_WARN@{LOG\_WARN}}
\index{LOG\_WARN@{LOG\_WARN}!service\_logger.hpp@{service\_logger.hpp}}
\doxysubsubsection{\texorpdfstring{LOG\_WARN}{LOG\_WARN}}
{\footnotesize\ttfamily \#define L\+O\+G\+\_\+\+W\+A\+RN(\begin{DoxyParamCaption}\item[{}]{format,  }\item[{}]{... }\end{DoxyParamCaption})}

{\bfseries Value\+:}
\begin{DoxyCode}{0}
\DoxyCodeLine{  guild\_service::log\_it(guild\_service::logger\_level\_type::WARNING, \(\backslash\)}
\DoxyCodeLine{                        \textcolor{stringliteral}{"{} "{}} format \textcolor{stringliteral}{"{} -\/ \%s(\%s:\%d) "{}}, \#\#\_\_VA\_ARGS\_\_, \(\backslash\)}
\DoxyCodeLine{                        \_\_FUNCTION\_\_, \_\_FILENAME\_\_, \_\_LINE\_\_)}

\end{DoxyCode}
